import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

/* Layout */
import Layout from "@/pages/layout/layout";
import {
  PageCode
} from "ui-component-v4";
// import permission from "@/directive/permission/index";

/**
     当设置 true 的时候该路由不会在侧边栏出现 如401，login等页面，或者如一些编辑页面/edit/1
     hidden: true // (默认 false)

     当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
     redirect: 'noRedirect'

     当你一个路由下面的 children 声明的路由大于1个时，自动会变成嵌套的模式--如组件页面
     只有一个时，会将那个子路由当做根路由显示在侧边栏--如引导页面
     若你想不管路由下面的 children 声明的个数都显示你的根路由
     你可以设置 alwaysShow: true，这样它就会忽略之前定义的规则，一直显示根路由
     alwaysShow: true

     name: 'router-name' //设定路由的名字，一定要填写不然使用<keep-alive>时会出现各种问题，缓存页面时使用到
     meta: {
      //设置该路由进入的权限，支持多个权限叠加（用户只需要拥有其中一个权限即可展示菜单）
      //如果没有设置permission，则默认显示
      //constantRouterMaps中的路由不会进行权限过滤，asyncRouterMap中的路由才会进行权限过滤（asyncRouterMap中的permission才会起效）
      permission: ['permission_key', 'permission_key2']
      title: 'title' //设置该路由在侧边栏和面包屑中展示的名字
      icon: 'svg-name' //设置该路由的图标
      noCache: true //如果设置为true，则不会被 <keep-alive> 缓存(默认 false)
      breadcrumb: false // 如果设置为false，则不会在breadcrumb面包屑中显示
     }
 */
export const constantRouterMap = [
  {
    path: "/redirect",
    component: Layout,
    hidden: true,
    children: [{
      path: "/redirect/:path*",
      component: () => import("@/pages/common/redirect/index")
    }]
  },
  {
    path: "/login",
    component: () => import("@/pages/common/login/index"),
    hidden: true
  },
  {
    path: "/",
    component: Layout,
    redirect: "/dashboard",
    meta: {
      title: "首页",
      icon: "iconp-l-shouye",
      noCache: true,
      permission: ['SYXX00']
    },
    children: [{
      path: "dashboard",
      component: () => import("@/pages/dashboard/index"),
      name: "dashboard",
      meta: {
        breadcrumb: false,
        title: "首页",
        icon: "iconp-l-shouye",
        noCache: true,
        layout: "page",
        permission: ['SYXX00']
      }
    }]
  },
  // {
  //   path: "/search",
  //   component: () => import("@/pages/layout/layout-top"),
  //   redirect: "/search",
  //   meta: {
  //     breadcrumb: false,
  //     title: "搜索",
  //     icon: "iconp-home",
  //     noCache: true
  //   },
  //   hidden: true,
  //   children: [{
  //     path: "/search",
  //     component: () => import("@/pages/search"),
  //     name: "search",
  //     meta: {
  //       title: "搜索",
  //       layout: "page",
  //       icon: "iconp-home",
  //       noCache: true
  //     },
  //     hidden: true
  //   },
  //   {
  //     path: "/search/:word",
  //     component: () => import("@/pages/search/details"),
  //     name: "search-details",
  //     meta: {
  //       title: "搜索详情",
  //       icon: "iconp-home",
  //       noCache: true,
  //       layout: "page",
  //       breadcrumb: false
  //     },
  //     hidden: true
  //   },
  //   ]
  // },
  {
    path: "/exter-commun",
    component: Layout,
    redirect: "/exter-commun/home",
    name: 'ExterCommun',
    meta: {
      breadcrumb: false,
      title: "外部来文",
      icon: "iconp-l-jiaoban",
      noCache: true,
      permission: ['WBLW00']
    },
    children: [{
      path: "home",
      component: () => import("@/pages/ExterCommun"),
      name: "ExterCommunHome",
      meta: {
        title: "外部来文",
        noCache: false,
        layout: "page",
        permission: ['WBLW00']
      }
    },
    {
      path: "add",
      component: () => import("@/pages/ExterCommun/add"),
      name: "AddExterCommun",
      hidden: true,
      meta: {
        title: "新增外部来文",
        noCache: true,
        layout: "page",
        belong: '/exter-commun/home',
        father: {
          path: '/exter-commun/home',
          meta: { title: '外部来文', }
        }
      }
    },
    {
      path: "edit/:id",
      component: () => import("@/pages/ExterCommun/edit"),
      name: "EditExterCommun",
      hidden: true,
      meta: {
        title: "编辑外部来文",
        noCache: true,
        layout: "page",
        isEdit: true,
        belong: '/exter-commun/home',
        father: {
          path: '/exter-commun/home',
          meta: { title: '外部来文', }
        }
      }
    },
    {
      path: "modify/:id",
      component: () => import("@/pages/ImportManagement/ImportIntel/modify"),
      name: "ExterCommunModify",
      hidden: true,
      meta: {
        layout: 'page',
        title: "修改",
        noCache: true,
        belong: '/exter-commun/home',
        father: {
          path: '/exter-commun/home',
          meta: { title: '外部来文', }
        }
      }
    },
    {
      path: "detail/:id",
      component: () => import("@/pages/ExterCommun/detail"),
      name: "ExterCommunDetail",
      hidden: true,
      meta: {
        title: "详情",
        noCache: true,
        layout: "page",
        belong: '/exter-commun/home',
        father: {
          path: '/exter-commun/home',
          meta: { title: '外部来文', }
        }
      }
    },
    ],
  },
  {
    path: "/import-management",
    component: Layout,
    redirect: "/import-management/import-intel-home",
    meta: {
      title: "要情管理",
      icon: "iconp-l-yaoqingxiansuo",
      noCache: true,
      checkPermission: ['YQGL00'],
    },
    // alwaysShow: true,
    children: [
      {
        path: "import-intel-home",
        component: () => import("@/pages/ImportManagement/ImportIntel/index"),
        name: 'ImpManageHome',
        meta: {
          // breadcrumb: false,
          title: "要情管理",
          noCache: true,
          layout: "page",
          permission: ['YQGL00'],
          belong:'/import-management/import-intel-home'
      }
      },
      {
        path: "import-intel-add",
        component: () => import("@/pages/ImportManagement/ImportIntel/add"),
        name: "AddImp",
        hidden: true,
        meta: {
          title: "上报",
          noCache: true,
          layout: "page",
          belong: '/import-management/import-intel-home',
        father:{
          path:'/import-management/import-intel-home',
          meta:{ title:'要情管理'}
        }
      }
      },
      {
        path: "import-intel-detail/:id",
        component: () => import("@/pages/ExterCommun/detail"),
        name: "ImpDetail",
        hidden: true,
        meta: {
          title: "详情",
          noCache: true,
          layout: "page",
          belong: '/import-management/import-intel-home',
          father:{
            path:'/import-management/import-intel-home',
            meta:{ title:'要情管理'}
          }
        }
      },
      {
        path: "import-intel-edit/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/add"),
        name: "EditImp",
        hidden: true,
        meta: {
          title: "编辑",
          noCache: true,
          layout: "page",
          isEdit: true,
          belong: '/import-management/import-intel-home',
        father:{
          path:'/import-management/import-intel-home',
          meta:{ title:'要情管理'}
        }
      }
      },
      // 要情管理-快速上报 
      {
        path: "import-intel-report/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/add"),
        name: "ImportIntelReport",
        hidden: true,
        meta: {
          title: "快速上报",
          noCache: true,
          layout: "page",
          isEdit: true,
          belong: '/import-management/import-intel-home',
          father: {
            path: '/import-management/import-intel-home',
            meta: { title: '要情管理', }
          }
        }
      },
      {
        path: "import-intel-supple/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/supplement"),
        name: "ImpSupplement",
        hidden: true,
        meta: {
          title: "补录",
          noCache: true,
          layout: "page",
          belong: '/import-management/import-intel-home',
          father:{
            path:'/import-management/import-intel-home',
            meta:{ title:'要情管理'}
          }
        }
      },
      {
        path: "import-intel-sign/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/sign"),
        name: "ImpSign",
        hidden: true,
        meta: {
          layout: 'page',
          title: "签收",
          noCache: true,
          belong: '/import-management/import-intel-home',
          father:{
            path:'/import-management/import-intel-home',
            meta:{ title:'要情管理'}
          }
        }
      },
      {
        path: "import-intel-approval/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/approval"),
        name: "ImpApproval",
        hidden: true,
        meta: {
          layout: 'page',
          title: "呈批",
          noCache: true,
          belong: '/import-management/import-intel-home',
          father:{
            path:'/import-management/import-intel-home',
            meta:{ title:'要情管理'}
          }
        }
      },
      {
        path: "import-intel-order/:id/:zlly",
        component: () => import("@/pages/ImportManagement/ImportIntel/order"),
        name: "ImpOrder",
        hidden: true,
        meta: {
          layout: 'page',
          title: "指令",
          noCache: true,
          belong: '/import-management/import-intel-home',
          father:{
            path:'/import-management/import-intel-home',
            meta:{ title:'要情管理'}
          }
        }
      },
      {
        path: "import-intel-modify/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/modify"),
        name: "ImpModify",
        hidden: true,
        meta: {
          layout: 'page',
          title: "修改",
          noCache: true,
          belong: '/import-management/import-intel-home',
          father:{
            path:'/import-management/import-intel-home',
            meta:{ title:'要情管理'}
          }
        }
      },
      {
        path: "feedback",
        component: () => import("@/pages/ImportManagement/SignFeedback"),
        name: "ImportFeedback",
        meta: {
          title: "签收反馈",
          noCache: true,
          layout: "page",
          permission: ['XSGL30'],
        },
      },
      {
        path: "feedback-detail/:id",
        component: () => import("@/pages/ExterCommun/detail"),
        name: "ImpSignFeedbackDetail",
        hidden: true,
        meta: {
          layout: 'page',
          title: "详情",
          noCache: true,
          belong: '/import-management/feedback',
          father: {
            path: '/import-management/feedback',
            meta: { title: '签收反馈', }
          }
        }
      },
      {
        path: "feedback-feedback/:id/:orderId/:jsId",
        component: () => import("@/pages/ImportManagement/SignFeedback/feedback"),
        name: "ImpFeedBack",
        hidden: true,
        meta: {
          layout: 'page',
          title: "反馈",
          noCache: true,
          belong: '/import-management/feedback',
          father: {
            path: '/import-management/feedback',
            meta: { title: '签收反馈', }
          }
        }
      },
      {
        path: "feedback-compre-analysis/:id",
        component: () => import("@/pages/ClueManagement/SignFeedback/compreAnalysis"),
        name: "CompreAnalysis",
        hidden: true,
        meta: {
          layout: 'page',
          title: "综合分析研判",
          noCache: true,
          belong: '/import-management/feedback',
          father: {
            path: '/import-management/feedback',
            meta: { title: '签收反馈', }
          }
        }
      },
      {
        path: "feedback-sign/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/sign"),
        name: "ImgManagementSign",
        hidden: true,
        meta: {
          layout: 'page',
          title: "签收",
          noCache: true,
          belong: '/import-management/feedback',
          father: {
            path: '/import-management/feedback',
            meta: { title: '签收反馈', }
          }
        }
      },
      {
        path: "feedback-order/:id/:zlly",
        component: () => import("@/pages/ImportManagement/ImportIntel/order"),
        name: "ImpManagementOrder",
        hidden: true,
        meta: {
          layout: 'page',
          title: "指令",
          noCache: true,
          belong: '/import-management/feedback',
          father: {
            path: '/import-management/feedback',
            meta: { title: '签收反馈', }
          }
        }
      },
    ],
  },
  {
    path: "/clue-management",
    component: Layout,
    redirect: "/clue-management/all-bureaus-home",
    meta: {
      title: "线索管理",
      icon: "iconp-f-xxiansuo",
      noCache: true,
      permission: ['XSGL00'],
      checkPermission: ['XSGL10'],
    },
    children: [
      {
        path: "all-bureaus-home",
        component: () => import("@/pages/ClueManagement/AllBureaus"),
        name: "AllBureausHome",
        meta: {
          title: "情报线索信息",
          noCache: true,
          layout: "page",
          permission: ['XSGL10'],
        }
      },
      {
        path: "all-bureaus-detail/:id",
        component: () => import("@/pages/ExterCommun/detail"),
        name: "AllBureausDetail",
        hidden: true,
        meta: {
          title: "详情",
          noCache: true,
          layout: "page",
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        },
      },
      {
        path: "all-bureaus-add",
        component: () => import("@/pages/ClueManagement/AllBureaus/add"),
        name: "AllBureausAdd",
        hidden: true,
        meta: {
          title: "上报",
          noCache: true,
          layout: "page",
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        },
      },
      {
        path: "all-bureaus-edit/:id",
        component: () => import("@/pages/ClueManagement/AllBureaus/add"),
        name: "AllBureausEdit",
        hidden: true,
        meta: {
          title: "编辑",
          noCache: true,
          layout: "page",
          isEdit: true,
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        },
      },
      // 情报线索信息-快速上报  
      {
        path: "all-bureaus-report/:id",
        component: () => import("@/pages/ClueManagement/AllBureaus/add"),
        name: "AllBureausReport",
        hidden: true,
        meta: {
          title: "快速上报",
          noCache: true,
          layout: "page",
          isEdit: true,
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        },
      },
      {
        path: "all-bureaus-modify/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/modify"),
        name: "AllBureausModify",
        hidden: true,
        meta: {
          layout: 'page',
          title: "修改",
          noCache: true,
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        }
      },
      {
        path: "all-bureaus-sign/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/sign"),
        name: "AllBureausSign",
        hidden: true,
        meta: {
          layout: 'page',
          title: "签收",
          noCache: true,
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        }
      },
      {
        path: "all-bureaus-approval/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/approval"),
        name: "AllBureausApproval",
        hidden: true,
        meta: {
          layout: 'page',
          title: "呈批",
          noCache: true,
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        }
      },
      {
        path: "all-bureaus-supple/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/supplement"),
        name: "AllBureausSupple",
        hidden: true,
        meta: {
          title: "补录",
          noCache: true,
          layout: "page",
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        }
      },
      {
        path: "all-bureaus-order/:id/:zlly",
        component: () => import("@/pages/ImportManagement/ImportIntel/order"),
        name: "AllBureausOrder",
        hidden: true,
        meta: {
          layout: 'page',
          title: "指令",
          noCache: true,
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        }
      },
      {
        path: "all-bureaus-request-judge/:id/:zlly",
        component: () => import("@/pages/ClueManagement/AllBureaus/RequestJudge"),
        name: "AllBureausRequestOrder",
        hidden: true,
        meta: {
          layout: 'page',
          title: "请求研判",
          noCache: true,
          belong: '/clue-management/all-bureaus-home',

          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        }
      },
      {
        path: "all-bureaus-judge/:id",
        component: () => import("@/pages/ClueManagement/AllBureaus/judge"),
        name: "AllBureausJudge",
        hidden: true,
        meta: {
          layout: 'page',
          title: "研判",
          noCache: true,
          belong: '/clue-management/all-bureaus-home',
          father: {
            path: '/clue-management/all-bureaus-home',
            meta: { title: '情报线索信息', }
          }
        }
      },

      {
        path: "local-bureaus-home",
        component: () => import("@/pages/ClueManagement/LocalBureaus"),
        name: "LocalBureausHome",
        meta: {
          title: "情报线索信息(情报)",
          noCache: true,
          layout: "page",
          permission: ['XSGL20']
        },
      },
      {
        path: "local-bureaus-add",
        component: () => import("@/pages/ClueManagement/LocalBureaus/add"),
        name: "LocalBureausAdd",
        hidden: true,
        meta: {
          title: "情报上报",
          noCache: true,
          layout: "page",
          belong: '/clue-management/local-bureaus-home',
          father: {
            path: '/clue-management/local-bureaus-home',
            meta: { title: '情报线索信息(情报)', }
          }
        },
      },
      {
        path: "local-bureaus-edit/:id",
        component: () => import("@/pages/ClueManagement/LocalBureaus/add"),
        name: "LocalBureausEdit",
        hidden: true,
        meta: {
          title: "编辑",
          noCache: true,
          layout: "page",
          isEdit: true,
          belong: '/clue-management/local-bureaus-home',
          father: {
            path: '/clue-management/local-bureaus-home',
            meta: { title: '情报线索信息(情报)', }
          }
        },
      },
      // 情报线索信息(情报)-快速上报 
      {
        path: "local-bureaus-report/:id",
        component: () => import("@/pages/ClueManagement/LocalBureaus/add"),
        name: "LocalBureausReport",
        hidden: true,
        meta: {
          title: "快速上报",
          noCache: true,
          layout: "page",
          isEdit: true,
          belong: '/clue-management/local-bureaus-home',
          father: {
            path: '/clue-management/local-bureaus-home',
            meta: { title: '情报线索信息(情报)', }
          }
        },
      },
      {
        path: "local-bureaus-detail/:id",
        component: () => import("@/pages/ExterCommun/detail"),
        name: "LocalBureausDetail",
        hidden: true,
        meta: {
          title: "详情",
          noCache: true,
          layout: "page",
          belong: '/clue-management/local-bureaus-home',
          father: {
            path: '/clue-management/local-bureaus-home',
            meta: { title: '情报线索信息(情报)', }
          }
        },
      },
      {
        path: "local-bureaus-sign/:id",
        component: () => import("@/pages/ClueManagement/LocalBureaus/sign"),
        name: "LocalBureausSign",
        hidden: true,
        meta: {
          layout: 'page',
          title: "签收",
          noCache: true,
          belong: '/clue-management/local-bureaus-home',
          father: {
            path: '/clue-management/local-bureaus-home',
            meta: { title: '情报线索信息(情报)', }
          }
        }
      },

      {
        path: "local-bureaus-order/:id/:zlly",
        component: () => import("@/pages/ImportManagement/ImportIntel/order"),
        name: "LocalBureausOrder",
        hidden: true,
        meta: {
          layout: 'page',
          title: "指令",
          noCache: true,
          belong: '/clue-management/local-bureaus-home',
          father: {
            path: '/clue-management/local-bureaus-home',
            meta: { title: '情报线索信息(情报)', }
          }
        }
      },
      {
        path: "local-bureaus-modify/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/modify"),
        name: "LocalBureausModify",
        hidden: true,
        meta: {
          layout: 'page',
          title: "修改",
          noCache: true,
          belong: '/clue-management/local-bureaus-home',
          father: {
            path: '/clue-management/local-bureaus-home',
            meta: { title: '情报线索信息(情报)', }
          }
        }
      },
      {
        path: "local-bureaus-judge/:id",
        component: () => import("@/pages/ClueManagement/AllBureaus/judge"),
        name: "LocalBureausJudge",
        hidden: true,
        meta: {
          layout: 'page',
          title: "研判",
          noCache: true,
          belong: '/clue-management/local-bureaus-home',
          father: {
            path: '/clue-management/local-bureaus-home',
            meta: { title: '情报线索信息(情报)', }
          }
        }
      },
      {
        path: "local-bureaus-request-judge/:id/:zlly",
        component: () => import("@/pages/ClueManagement/AllBureaus/RequestJudge"),
        name: "LocalBureausRequestOrder",
        hidden: true,
        meta: {
          layout: 'page',
          title: "请求研判",
          noCache: true,
          belong: '/clue-management/local-bureaus-home',
          father: {
            path: '/clue-management/local-bureaus-home',
            meta: { title: '情报线索信息(情报)', }
          }
        }
      },
      {
        path: "clue-sign-feedback-home",
        component: () => import("@/pages/ClueManagement/SignFeedback"),
        name: "ClueSignFeedback",
        meta: {
          title: "签收反馈",
          noCache: true,
          layout: "page",
          permission: ['XSGL30']
        },
      },
      {
        path: "clue-sign-feedback-detail/:id",
        component: () => import("@/pages/ExterCommun/detail"),
        name: "ClueSignFeedbackDetail",
        hidden: true,
        meta: {
          layout: 'page',
          title: "详情",
          noCache: true,
          belong: '/clue-management/clue-sign-feedback-home',
          father: {
            path: '/clue-management/clue-sign-feedback-home',
            meta: { title: '签收反馈', }
          }
        }
      },
      {
        path: "clue-sign-feedback-feedback/:id/:orderId/:jsId",
        component: () => import("@/pages/ImportManagement/SignFeedback/feedback"),
        name: "ClueFeedBack",
        hidden: true,
        meta: {
          layout: 'page',
          title: "反馈",
          noCache: true,
          belong: '/clue-management/clue-sign-feedback-home',
          father: {
            path: '/clue-management/clue-sign-feedback-home',
            meta: { title: '签收反馈', }
          }
        }
      },
      {
        path: "clue-sign-feedback-compre-analysis/:id",
        component: () => import("@/pages/ClueManagement/SignFeedback/compreAnalysis"),
        name: "CompreAnalysis",
        hidden: true,
        meta: {
          layout: 'page',
          title: "综合分析研判",
          noCache: true,
          belong: '/clue-management/clue-sign-feedback-home',
          father: {
            path: '/clue-management/clue-sign-feedback-home',
            meta: { title: '签收反馈', }
          }
        }
      },
      {
        path: "clue-sign-feedback-sign/:id",
        component: () => import("@/pages/ImportManagement/ImportIntel/sign"),
        name: "ClueManagementSign",
        hidden: true,
        meta: {
          layout: 'page',
          title: "签收",
          noCache: true,
          belong: '/clue-management/clue-sign-feedback-home',
          father: {
            path: '/clue-management/clue-sign-feedback-home',
            meta: { title: '签收反馈', }
          }
        }
      },
      {
        path: "clue-sign-feedback-order/:id/:zlly",
        component: () => import("@/pages/ImportManagement/ImportIntel/order"),
        name: "ClueManagementOrder",
        hidden: true,
        meta: {
          layout: 'page',
          title: "指令",
          noCache: true,
          belong: '/clue-management/clue-sign-feedback-home',
          father: {
            path: '/clue-management/clue-sign-feedback-home',
            meta: { title: '签收反馈', }
          }
        }
      },
      {
        path: "clue-menage-szx",
        component: () => import("@/pages/ClueManagement/ClueManageSzx"),
        name: "ClueMenageSzx",
        meta: {
          title: "线索管理（四中心)",
          noCache: true,
          layout: "page",
          permission: ['XSGL40']
        },
      },
    ]
  },
  {
    path: "/police-information",
    component: Layout,
    redirect: "/police-information/command-home",
    name: 'Police',
    meta: {
      title: "110警情",
      icon: "iconp-l-yujing",
      noCache: true,
      permission: ['JQXX00'],
      checkPermission: ['JQXX10'],
    },
    children: [
      {
        path: "command-home",
        component: () => import("@/pages/PoliceInformation/command"),
        name: "PoliceCommandHome",
        meta: {
          title: "110报警信息(指挥)",
          noCache: false,
          layout: "page",
          permission: ['JQXX10']
        },
      },
      {
        path: "command-detail/:id",
        component: () => import("@/pages/PoliceInformation/command/detail/index"),
        name: "PoliceCommandDetail",
        hidden: true,
        meta: {
          title: "详情",
          noCache: true,
          layout: "page",
          reqType: 'zh',
          belong: '/police-information/command-home',
          father: {
            path: '/police-information/command-home',
            meta: { title: '情报线索信息', }
          }
        },
      },
      {
        path: "command-approval-form/:jqid",
        component: () => import("@/pages/PoliceInformation/command/approvalForm"),
        name: "PoliceCommandForm",
        hidden: true,
        meta: {
          title: "生成审批单",
          noCache: true,
          layout: "page",
          belong: '/police-information/command-home',
          father: {
            path: '/police-information/command-home',
            meta: { title: '情报线索信息', }
          }
        },
      },
      {
        path: "command-request-judge/:id/:zlly",
        component: () => import("@/pages/PoliceInformation/command/requestJudge"),
        name: "PoliceCommandJudge",
        hidden: true,
        meta: {
          title: "请求研判",
          noCache: true,
          layout: "page",
          belong: '/police-information/command-home',
          father: {
            path: '/police-information/command-home',
            meta: { title: '情报线索信息', }
          }
        },
      },

      {
        path: "news-home",
        component: () => import("@/pages/PoliceInformation/cuttingEdgeNew"),
        name: "PoliceNewsHome",
        meta: {
          title: "110报警信息(情报)",
          noCache: false,
          layout: "page",
          permission: ['JQXX20']
        },
      },
      {
        path: "news-detail/:id",
        component: () => import("@/pages/PoliceInformation/command/detail/index"),
        name: "PoliceNewsDetail",
        hidden: true,
        meta: {
          title: "详情",
          noCache: true,
          layout: "page",
          belong: '/police-information/news-home',
          father: {
            path: '/police-information/news-home',
            meta: { title: '情报线索信息', }
          }
        },
      },
      {
        path: "news-judge/:id",
        component: () => import("@/pages/PoliceInformation/cuttingEdgeNew/judge"),
        name: "PoliceJudge",
        hidden: true,
        meta: {
          title: "研判",
          noCache: true,
          layout: "page",
          belong: '/police-information/news-home',
          father: {
            path: '/police-information/news-home',
            meta: { title: '情报线索信息', }
          }
        },
      },

      {
        path: "news-judge-order/:id/:zlly",
        component: () => import("@/pages/PoliceInformation/cuttingEdgeNew/judgeOrder"),
        name: "PoliceNewsJudgeOrder",
        hidden: true,
        meta: {
          title: "研判指令",
          noCache: true,
          layout: "page",
          belong: '/police-information/news-home',
          father: {
            path: '/police-information/news-home',
            meta: { title: '情报线索信息', }
          }
        },
      },
      {
        path: "judge-task-home",
        component: () => import("@/pages/PoliceInformation/judge"),
        name: "PoliceJudgeTaskHome",
        meta: {
          title: "研判任务",
          noCache: false,
          layout: "page",
          permission: ['JQXX30']
        },
      },
      {
        path: "judge-task-feedback/:id/:jqid",
        component: () => import("@/pages/PoliceInformation/judge/feedback"),
        name: "PolicJudgeFeedback",
        hidden: true,
        meta: {
          title: "研判反馈",
          noCache: true,
          layout: "page",
          belong: '/police-information/judge-task-home',
          father: {
            path: '/police-information/judge-task-home',
            meta: { title: '研判任务', }
          }
        },
      },
      {
        path: "judge-task-detail/:id",
        component: () => import("@/pages/PoliceInformation/command/detail/index"),
        name: "PolicJudgeDetail",
        hidden: true,
        meta: {
          title: "详情",
          noCache: true,
          layout: "page",
          belong: '/police-information/judge-task-home',
          father: {
            path: '/police-information/judge-task-home',
            meta: { title: '研判任务', }
          }
        },
      },
      {
        path: "judge-task-judge-order/:id/:zlly",
        component: () => import("@/pages/PoliceInformation/cuttingEdgeNew/judgeOrder"),
        name: "PolicJudgeOrder",
        hidden: true,
        meta: {
          title: "研判指令",
          noCache: true,
          layout: "page",
          belong: '/police-information/judge-task-home',
          father: {
            path: '/police-information/judge-task-home',
            meta: { title: '研判任务', }
          }
        },
      },
      {
        path: "judge-order-home",
        component: () => import("@/pages/PoliceInformation/judgeOrder"),
        name: "PoliceJudgeOrder",
        meta: {
          title: "研判指令",
          noCache: false,
          layout: "page",
          permission: ['JQXX40']
        },
      },
      {
        path: "judge-order-detail/:id",
        component: () => import("@/pages/PoliceInformation/command/detail/index"),
        name: "PolicJudgeOrderDetail",
        hidden: true,
        meta: {
          title: "详情",
          noCache: true,
          layout: "page",
          belong: '/police-information/judge-order-home',
          father: {
            path: '/police-information/judge-order-home',
            meta: { title: '研判指令', }
          }
        },
      },
      {
        path: "approval-home",
        component: () => import("@/pages/PoliceInformation/approval"),
        name: "PoliceApprovalHome",
        meta: {
          title: "110报警呈批单（指挥）",
          noCache: false,
          layout: "page",
          permission: ['JQXX50']
        },
      },
      {
        path: "approval-approval/:id",
        component: () => import("@/pages/PoliceInformation/approval/approval"),
        name: "PoliceApprovalApproval",
        hidden: true,
        meta: {
          title: "呈批",
          noCache: true,
          layout: "page",
          belong: '/police-information/approval-home',
          father: {
            path: '/police-information/approval-home',
            meta: { title: '110报警呈批单（指挥）', }
          }
        },
      },
      {
        path: "approval-supple/:id",
        component: () => import("@/pages/PoliceInformation/approval/supplement"),
        name: "PoliceApprovalSupple",
        hidden: true,
        meta: {
          title: "补录",
          noCache: true,
          layout: "page",
          belong: '/police-information/approval-home',
          father: {
            path: '/police-information/approval-home',
            meta: { title: '110报警呈批单（指挥）', }
          }
        },
      },
      {
        path: "approval-modify/:spdid/:jqid",
        component: () => import("@/pages/PoliceInformation/command/approvalForm"),
        name: "PoliceApprovalModify",
        hidden: true,
        meta: {
          title: "修改",
          noCache: true,
          layout: "page",
          belong: '/police-information/approval-home',
          father: {
            path: '/police-information/approval-home',
            meta: { title: '110报警呈批单（指挥）', }
          }
        },
      },
      {
        path: "approval-order/:id/:zlly",
        component: () => import("@/pages/PoliceInformation/alarmHandle/order"),
        name: "PoliceApprovalOrder",
        hidden: true,
        meta: {
          layout: 'page',
          title: "指令",
          noCache: true,
          belong: '/police-information/approval-home',
          father: {
            path: '/police-information/approval-home',
            meta: { title: '110报警呈批单（指挥）', }
          }
        }
      },
      {
        path: "approval-detail/:id",
        component: () => import("@/pages/PoliceInformation/approval/detail/index"),
        name: "PoliceApprovalDetail",
        hidden: true,
        meta: {
          layout: 'page',
          title: "详情",
          noCache: true,
          belong: '/police-information/approval-home',
          father: {
            path: '/police-information/approval-home',
            meta: { title: '110报警呈批单（指挥）', }
          }
        }
      },
      {
        path: "order-home",
        component: () => import("@/pages/PoliceInformation/order"),
        name: "PoliceOrderHome",
        meta: {
          title: "110下发列表",
          noCache: false,
          layout: "page",
          permission: ['JQXX60']
        },
      },
      {
        path: "order-detail/:id",
        component: () => import("@/pages/PoliceInformation/approval/detail/index"),
        name: "PoliceOrderDetail",
        hidden: true,
        meta: {
          layout: 'page',
          title: "详情",
          noCache: true,
          belong: '/police-information/order-home',
          father: {
            path: '/police-information/order-home',
            meta: { title: '110下发列表', }
          }
        }
      },
      {
        path: "alarm-handle-home",
        component: () => import("@/pages/PoliceInformation/alarmHandle"),
        name: "AlarmHandleHome",
        meta: {
          title: "110报警处理",
          noCache: false,
          layout: "page",
          permission: ['JQXX70']
        },
      },
      {
        path: "alarm-handle-resubmit/:id/:zlid",
        component: () => import("@/pages/PoliceInformation/alarmHandle/resubmit"),
        name: "AlarmHandleResubmit",
        hidden: true,
        meta: {
          title: "续报",
          noCache: true,
          layout: "page",
          belong: '/police-information/alarm-handle-home',
          father: {
            path: '/police-information/alarm-handle-home',
            meta: { title: '110报警处理', }
          }
        },
      },
      {
        path: "alarm-handle-detail/:id",
        component: () => import("@/pages/PoliceInformation/approval/detail/index"),
        name: "PoliceApprovalDetail",
        hidden: true,
        meta: {
          layout: 'page',
          title: "详情",
          noCache: true,
          belong: '/police-information/alarm-handle-home',
          father: {
            path: '/police-information/alarm-handle-home',
            meta: { title: '110报警处理', }
          }
        }
      },
      {
        path: "alarm-handle-order/:id/:zlly",
        component: () => import("@/pages/PoliceInformation/alarmHandle/order"),
        name: "AlarmHandleOrder",
        hidden: true,
        meta: {
          layout: 'page',
          title: "指令",
          noCache: true,
          belong: '/police-information/alarm-handle-home',
          father: {
            path: '/police-information/alarm-handle-home',
            meta: { title: '110报警处理', }
          }
        }
      }
    ]
  },
  {
    path: "/notice-information",
    component: Layout,
    redirect: "/notice-information/notice-home",
    meta: {
      title: "公告信息",
      icon: "iconp-l-gonggaoxinxi",
      noCache: true,
      permission: ['GGXX00'],
      checkPermission: ['GGXX10'],
    },
    children: [{
      path: "notice-home",
      component: () => import("@/pages/NoticeInfomation"),
      name: "NoticeInfomation",
      meta: {
        breadcrumb: false,
        title: "公告信息",
        noCache: false,
        layout: "page",
        permission: ['GGXX10']
      }
    },
    {
      path: "notice-detail/:id",
      component: () => import("@/pages/NoticeInfomation/detail"),
      name: "NoticeDetail",
      hidden: true,
      meta: {
        title: "公告详情",
        noCache: true,
        layout: "page",
        belong: '/notice-information/notice-home'
      }
    },
    {
      path: "notice-management-home",
      component: () => import("@/pages/NoticeInfomation/NoticeManagement"),
      name: "NoticeManagement",
      meta: {
        title: "公告管理",
        noCache: false,
        layout: "page",
        permission: ['GGXX20'],
      },
    },
    {
      path: "notice-management-detail/:id",
      component: () => import("@/pages/NoticeInfomation/detail"),
      name: "NoticeManagementDetail",
      hidden: true,
      meta: {
        title: "详情",
        noCache: true,
        layout: "page",
        belong: '/notice-information/notice-management-home',
        father: {
          path: '/notice-information/notice-management-home',
          meta: { title: '公告管理', }
        }
      },
    }
    ],
  },
  {
    path: "/submit-review",
    component: Layout,
    redirect: "/submit-review/home",
    meta: {
      breadcrumb: false,
      title: "呈递批阅",
      icon: "iconp-l-qianshou",
      noCache: true,
      permission: ['CPDY00']
    },
    children: [
      {
        path: "home",
        component: () => import("@/pages/SubmitReview"),
        name: "SubmitReview",
        meta: {
          title: "呈递批阅",
          noCache: true,
          layout: "page",
        }
      },
      {
        path: "detail/:id",
        component: () => import("@/pages/SubmitReview/detail"),
        name: "SubmitReviewDetail",
        hidden: true,
        meta: {
          title: "详情",
          noCache: true,
          layout: "page",
          belong: '/submit-review/home',
          father: {
            path: '/submit-review/home',
            meta: { title: '呈递批阅', }
          }
        }
      },
      {
        path: "approval/:id/:sid",
        component: () => import("@/pages/SubmitReview/approval"),
        name: "SubmitReviewApproval",
        hidden: true,
        meta: {
          title: "批示",
          noCache: true,
          layout: "page",
          belong: '/submit-review/home',
          father: {
            path: '/submit-review/home',
            meta: { title: '呈递批阅', }
          }
        }
      },
      {
        path: "approvalDetail/:sid",
        component: () => import("@/pages/SubmitReview/approvalDetail"),
        name: "SubmitApprovalDetail",
        hidden: true,
        meta: {
          title: "批示详情",
          noCache: true,
          layout: "page",
          belong: '/submit-review/home',
          father: {
            path: '/submit-review/home',
            meta: { title: '呈递批阅', }
          }
        }
      },
    ]
  },
  {
    path: "/thematic",
    component: Layout,
    redirect: "/thematic/home",
    meta: {
      title: "专题管理",
      icon: "iconp-l-zhuantiguanl",
      noCache: true,
      permission: ['ZTGL00'],
      breadcrumb: false,
    },
    children: [{
      path: "home",
      component: () => import("@/pages/ThematicManagement"),
      name: "ThematicManagement",
      meta: {
        title: "专题管理",
        noCache: false,
        layout: "page",
        permission: ['ZTGL00']
      },
    },
    {
      path: "detail/:id",
      component: () => import("@/pages/ThematicManagement/detail"),
      name: "ThematicDetail",
      hidden: true,
      meta: {
        title: "详情",
        noCache: true,
        layout: "page",
        belong: '/thematic/home',
        father: {
          path: '/thematic/home',
          meta: { title: '专题管理', }
        }
      },
    },
    ]
  },
  {
    path: '/403',
    component: () => import('@/pages/common/error-page/403.vue'),
    name: '403',
    meta: {
      title: '403'
    }
  },
  {
    path: '*',
    component: () => import('@/pages/common/error-page/404.vue'),
    hidden: true
  }
]

export default new Router({
  // mode: 'history', // require service support
  scrollBehavior: () => ({
    y: 0
  }),
  routes: constantRouterMap
});

export const asyncRouterMap = [
  /** When your routing table is too long, you can split it into small modules**/
  {
    path: "*",
    component: PageCode,
    hidden: true
  }
];
